package com.example.demo.mapper;/**
 * ClassName: TimeQuantumMapper
 * Package: com.example.demo.mapper
 * Description:
 *
 * @Author 理理
 * @Create 2024/11/16 19:15
 * @Version 1.0
 */

import com.example.demo.entity.Repair;
import com.example.demo.entity.TimeQuantum;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.sql.Time;
import java.util.List;

/**
 *
 *@title: TimeQuantumMapper
 *@Author: Tangerine
 *@Date: 2024/11/16 19:15
 *@version 1.0
 */
@Mapper
public interface TimeQuantumMapper {
    @Select("select * from timequantum")
    List<TimeQuantum> findAll();

    @Select("select endTime from timequantum where id=#{id}")
    Time getEnd(@Param("id")Integer id);

}
